Student = function(name, sex) {
	this.name = name;
	this.sex = sex;
};

//test
var student = new Student('史蒂芬', 'man');
alert(student.name + student.sex);

Employee = function(config) {
	this.name = config.name;
	this.sex = config.sex;
};

//test
var employee = new Employee({
	name:'威廉',
	sex:'man'
});
alert(employee.name + employee.sex);

Person = function(config) {
	this.id = config.id;
	Ext.apply(this, config);
};

//test
var person = new Person({name:'1', sex:'man', id:1});
alert(person.name + person.sex + person.id);
